package com.liycloud.mall.api.feign;

import com.liycloud.common.core.constant.ServiceNameConstants;
import com.liycloud.common.core.util.ResultVo;
import com.liycloud.mall.api.entity.OrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 *  订单 Feign 接口
 *
 **/
@FeignClient(ServiceNameConstants.MALL_ORDER)
public interface OrderServiceFeignClient {

	/**
	 *  通过用户ID  查询该用户所的所有订单order
	 */
	@GetMapping("/order/getOrderByUserId/{userId}")
	ResultVo<List<OrderEntity>> getOrderByUserId(@PathVariable("userId") Integer userId);



}
